package com.zxp.zxpsmarthomeapk.base;


import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;

/**
 * author: Created by zhangxianpeng on 2018/5/5.
 * function:封装commentFragment
 */

public abstract class CommentFragment extends Fragment {
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public void onStart() {
        super.onStart();
        init();
        findViews();
        initData();
        setListener();
        setting();
    }

    @Nullable
    @Override
    public Context getContext() {
        return getActivity();
    }

    public abstract void init();

    public abstract void findViews();

    public abstract void initData();

    public abstract void setListener();

    public abstract void setting();
}
